```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Elasticsearch 跨集群搜索技术解析</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background-color: #1e293b;
            border-left: 4px solid #2563eb;
        }
        .drop-cap::first-letter {
            font-family: 'Noto Serif SC', serif;
            float: left;
            font-size: 4rem;
            line-height: 0.8;
            margin: 0.2em 0.1em 0 0;
            color: #2563eb;
            font-weight: 700;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <header class="hero-gradient text-white py-24 px-4">
        <div class="max-w-5xl mx-auto text-center">
            <span class="inline-block bg-white bg-opacity-20 px-4 py-1 rounded-full text-sm font-medium mb-4">Elasticsearch 技术解析</span>
            <h1 class="serif text-4xl md:text-5xl font-bold leading-tight mb-6">跨集群搜索(CCS) <br>分布式数据查询的完美解决方案</h1>
            <p class="text-xl opacity-90 max-w-3xl mx-auto leading-relaxed">在多个Elasticsearch集群间无缝执行搜索，无需数据迁移，实现真正的分布式搜索体验</p>
            <div class="mt-8 flex justify-center space-x-4">
                <a href="#overview" class="px-6 py-3 bg-white text-blue-800 font-medium rounded-lg hover:bg-opacity-90 transition-all">核心原理</a>
                <a href="#configuration" class="px-6 py-3 border-2 border-white text-white font-medium rounded-lg hover:bg-white hover:bg-opacity-10 transition-all">配置指南</a>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="max-w-5xl mx-auto px-4 py-16">
        <!-- Overview Section -->
        <section id="overview" class="mb-20">
            <div class="flex items-center mb-8">
                <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-4">
                    <i class="fas fa-project-diagram text-2xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold">跨集群搜索的核心原理</h2>
            </div>
            
            <p class="drop-cap text-lg text-slate-700 leading-relaxed mb-8">在Elasticsearch中，跨集群搜索(Cross-Cluster Search, CCS)是一种强大的功能，它允许用户在不同的Elasticsearch集群上执行统一的搜索请求，而无需将数据集中到一个单独的集群中。这项技术的出现，彻底改变了分布式数据查询的游戏规则。</p>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white rounded-xl shadow-md p-6 card-hover transition-all">
                    <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 mb-4">
                        <i class="fas fa-network-wired"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">分布式架构</h3>
                    <p class="text-slate-600">跨集群搜索通过协调集群将查询分发到多个远程集群，各集群独立执行搜索后返回结果，由协调集群汇总给用户，实现了真正的分布式搜索。</p>
                </div>
                <div class="bg-white rounded-xl shadow-md p-6 card-hover transition-all">
                    <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-600 mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">数据隔离</h3>
                    <p class="text-slate-600">各集群保持数据独立性和安全性，无需集中存储，特别适合多租户、多地域的数据存储需求，同时满足数据合规要求。</p>
                </div>
            </div>

            <!-- Process Visualization -->
            <div class="bg-white rounded-xl shadow-md p-6 mb-12">
                <h3 class="text-2xl font-bold mb-6 text-center serif">跨集群搜索工作流程</h3>
                <div class="mermaid">
                    graph TD
                        A[用户发起搜索请求] --> B(协调集群)
                        B --> C{转发请求}
                        C --> D[远程集群1]
                        C --> E[远程集群2]
                        C --> F[远程集群3]
                        D --> G[返回结果]
                        E --> G
                        F --> G
                        G --> H[汇总结果]
                        H --> I[返回最终结果给用户]
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-6">
                    <h3 class="text-2xl font-bold mb-6 serif">详细执行步骤</h3>
                    <ol class="space-y-6">
                        <li class="flex">
                            <div class="flex-shrink-0 mr-4">
                                <div class="flex items-center justify-center w-8 h-8 rounded-full bg-blue-600 text-white font-bold">1</div>
                            </div>
                            <div>
                                <h4 class="text-lg font-semibold mb-2">配置远程集群</h4>
                                <p class="text-slate-600">在协调集群中配置要搜索的远程集群，包括集群名称和节点访问地址。配置完成后，协调集群知道如何访问这些远程集群。</p>
                            </div>
                        </li>
                        <li class="flex">
                            <div class="flex-shrink-0 mr-4">
                                <div class="flex items-center justify-center w-8 h-8 rounded-full bg-blue-600 text-white font-bold">2</div>
                            </div>
                            <div>
                                <h4 class="text-lg font-semibold mb-2">发起搜索请求</h4>
                                <p class="text-slate-600">用户在协调集群上发起搜索请求，指定要搜索的索引、查询条件等参数。这些请求将被转发到所有配置的远程集群。</p>
                            </div>
                        </li>
                        <li class="flex">
                            <div class="flex-shrink-0 mr-4">
                                <div class="flex items-center justify-center w-8 h-8 rounded-full bg-blue-600 text-white font-bold">3</div>
                            </div>
                            <div>
                                <h4 class="text-lg font-semibold mb-2">转发请求</h4>
                                <p class="text-slate-600">协调集群通过已配置的远程集群名称将搜索请求发送到相应的远程集群。远程集群收到请求后，在其本地数据上执行搜索操作。</p>
                            </div>
                        </li>
                        <li class="flex">
                            <div class="flex-shrink-0 mr-4">
                                <div class="flex items-center justify-center w-8 h-8 rounded-full bg-blue-600 text-white font-bold">4</div>
                            </div>
                            <div>
                                <h4 class="text-lg font-semibold mb-2">汇总结果</h4>
                                <p class="text-slate-600">各远程集群执行完搜索后，将结果返回给协调集群。协调集群根据请求中的排序和分页要求整合这些结果。</p>
                            </div>
                        </li>
                        <li class="flex">
                            <div class="flex-shrink-0 mr-4">
                                <div class="flex items-center justify-center w-8 h-8 rounded-full bg-blue-600 text-white font-bold">5</div>
                            </div>
                            <div>
                                <h4 class="text-lg font-semibold mb-2">返回结果</h4>
                                <p class="text-slate-600">协调集群将整合后的搜索结果返回给用户，就像这些数据来自单个集群一样，对用户完全透明。</p>
                            </div>
                        </li>
                    </ol>
                </div>
            </div>
        </section>

        <!-- Configuration Section -->
        <section id="configuration" class="mb-20">
            <div class="flex items-center mb-8">
                <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-4">
                    <i class="fas fa-cog text-2xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold">配置跨集群搜索</h2>
            </div>

            <p class="text-lg text-slate-700 leading-relaxed mb-8">要实现跨集群搜索功能，需要在协调集群中进行适当的配置。以下是详细的配置步骤和示例代码。</p>

            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all">
                    <div class="bg-slate-800 px-6 py-4">
                        <h3 class="text-white font-mono text-sm">elasticsearch.yml 配置</h3>
                    </div>
                    <div class="p-6 code-block text-gray-300 font-mono text-sm overflow-x-auto">
                        <p class="text-blue-300"># 配置远程集群</p>
                        <p>cluster.remote.remote_cluster_one.seeds: </p>
                        <p class="ml-4">["192.168.1.2:9300", "192.168.1.3:9300"]</p>
                        <p class="text-blue-300 mt-4"># 配置说明</p>
                        <p class="text-gray-400">• remote_cluster_one: 远程集群名称(可自定义)</p>
                        <p class="text-gray-400">• seeds: 远程集群节点地址列表</p>
                        <p class="text-gray-400">• 9300: Elasticsearch传输端口</p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all">
                    <div class="bg-slate-800 px-6 py-4">
                        <h3 class="text-white font-mono text-sm">REST API 查询示例</h3>
                    </div>
                    <div class="p-6 code-block text-gray-300 font-mono text-sm overflow-x-auto">
                        <p>GET /remote_cluster_one:index_name/_search</p>
                        <p>{</p>
                        <p class="ml-4">"query": {</p>
                        <p class="ml-8">"match": {</p>
                        <p class="ml-12">"field": "value"</p>
                        <p class="ml-8">}</p>
                        <p class="ml-4">}</p>
                        <p>}</p>
                        <p class="text-blue-300 mt-4"># 查询说明</p>
                        <p class="text-gray-400">• remote_cluster_one: 远程集群名称</p>
                        <p class="text-gray-400">• index_name: 远程集群上的索引名</p>
                        <p class="text-gray-400">• 查询语法与普通搜索相同</p>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-md p-6 mb-8">
                <h3 class="text-2xl font-bold mb-6 serif">跨集群搜索的进阶配置</h3>
                <div class="grid gap-6">
                    <div>
                        <h4 class="text-lg font-semibold mb-3 flex items-center">
                            <i class="fas fa-link text-blue-500 mr-2"></i>网络连接配置
                        </h4>
                        <p class="text-slate-600">确保协调集群和远程集群之间的网络连接正常，传输端口(默认9300)开放。对于跨地域集群，建议配置VPN或专用网络通道。</p>
                    </div>
                    <div>
                        <h4 class="text-lg font-semibold mb-3 flex items-center">
                            <i class="fas fa-code-branch text-blue-500 mr-2"></i>版本兼容性
                        </h4>
                        <p class="text-slate-600">所有参与的集群应使用兼容的Elasticsearch版本。建议使用相同的主要版本，不同小版本间可能存在兼容性问题。</p>
                    </div>
                    <div>
                        <h4 class="text-lg font-semibold mb-3 flex items-center">
                            <i class="fas fa-lock text-blue-500 mr-2"></i>安全配置
                        </h4>
                        <p class="text-slate-600">在生产环境中，务必配置TLS加密传输和认证机制。可以使用Elasticsearch Security功能或外部的安全网关来保护集群间通信。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Advantages Section -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-4">
                    <i class="fas fa-star text-2xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold">跨集群搜索的核心优势</h2>
            </div>

            <div class="grid md:grid-cols-3 gap-6">
                <div class="bg-gradient-to-br from-blue-50 to-indigo-50 rounded-xl p-6 card-hover transition-all">
                    <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mb-4">
                        <i class="fas fa-expand-arrows-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">无与伦比的可扩展性</h3>
                    <p class="text-slate-600">突破单集群资源限制，轻松实现PB级数据的分布式存储和查询，特别适合业务快速扩张的场景。</p>
                </div>
                <div class="bg-gradient-to-br from-green-50 to-teal-50 rounded-xl p-6 card-hover transition-all">
                    <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-600 mb-4">
                        <i class="fas fa-globe-americas"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">全球数据即时访问</h3>
                    <p class="text-slate-600">跨地域集群部署结合CCS功能，实现数据的本地化存储和全球统一查询，优化用户体验和查询性能。</p>
                </div>
                <div class="bg-gradient-to-br from-purple-50 to-pink-50 rounded-xl p-6 card-hover transition-all">
                    <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600 mb-4">
                        <i class="fas fa-shield-virus"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">数据安全隔离</h3>
                    <p class="text-slate-600">敏感数据可独立存储在不同集群，通过精细的权限控制，实现数据的逻辑隔离和安全保障。</p>
                </div>
            </div>
        </section>

        <!-- Considerations Section -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-4">
                    <i class="fas fa-exclamation-triangle text-2xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold">实施注意事项</h2>
            </div>

            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="border-b border-slate-200 px-6 py-4 flex items-center">
                    <i class="fas fa-network-wired text-blue-500 mr-3"></i>
                    <h3 class="font-bold">网络性能优化</h3>
                </div>
                <div class="p-6">
                    <p class="text-slate-600 mb-4">跨集群搜索会增加网络通信开销，可能影响查询延迟。建议：</p>
                    <ul class="space-y-2 text-slate-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>集群间使用高速专用网络连接</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>优化分片策略，减少数据传输量</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                            <span>合理设置查询超时和分页参数</span>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="grid md:grid-cols-2 gap-6 mt-6">
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="border-b border-slate-200 px-6 py-4 flex items-center">
                        <i class="fas fa-sync-alt text-blue-500 mr-3"></i>
                        <h3 class="font-bold">版本兼容策略</h3>
                    </div>
                    <div class="p```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Elasticsearch 跨集群搜索详解</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.8;
            color: #333;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background-color: #2d3748;
            color: #f7fafc;
            border-radius: 0.5rem;
        }
        .mermaid-container {
            background: white;
            padding: 2rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 md:py-32">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 md:pr-10">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 leading-tight">Elasticsearch <br>跨集群搜索</h1>
                    <p class="text-xl text-indigo-100 mb-8">探索分布式搜索的强大功能 — 跨越多个集群的无缝搜索体验</p>
                    <div class="flex items-center">
                        <span class="bg-indigo-600 text-white px-4 py-2 rounded-full text-sm font-medium mr-3">
                            <i class="fas fa-share-alt mr-2"></i>分布式架构
                        </span>
                        <span class="bg-purple-600 text-white px-4 py-2 rounded-full text-sm font-medium">
                            <i class="fas fa-bolt mr-2"></i>高效性能
                        </span>
                    </div>
                </div>
                <div class="md:w-1/2 mt-10 md:mt-0">
                    <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-filter backdrop-blur-sm border border-white border-opacity-20">
                        <div class="text-xl font-semibold mb-4">核心优势</div>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-300 mr-3 mt-1"></i>
                                <span>无需移动数据即可实现跨集群搜索</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-300 mr-3 mt-1"></i>
                                <span>简化大规模数据管理</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-300 mr-3 mt-1"></i>
                                <span>提高数据隔离性和安全性</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Content Section -->
    <section class="py-16 px-4">
        <div class="max-w-4xl mx-auto">
            <div class="prose prose-lg max-w-none">
                <p class="text-gray-600 mb-8 text-xl leading-relaxed">
                    在 Elasticsearch 中，跨集群搜索（Cross-Cluster Search, CCS）是一种允许用户在多个 Elasticsearch 集群上执行搜索请求的功能。它可以帮助用户在不同的集群中执行查询，而不需要将数据集中到一个单独的集群中。
                </p>

                <h2 class="text-3xl font-bold mt-12 mb-6 text-gray-800 border-b pb-2">跨集群搜索的原理</h2>
                <p>
                    跨集群搜索的核心原理是将搜索请求从一个集群（称为"协调集群"）发送到一个或多个远程集群，然后将结果聚合到协调集群上。
                </p>
                
                <div class="mermaid-container my-10">
                    <div class="mermaid">
                        graph TD
                            A[用户] -->|发送请求| B[协调集群]
                            B -->|转发查询| C[远程集群1]
                            B -->|转发查询| D[远程集群2]
                            C -->|返回结果| B
                            D -->|返回结果| B
                            B -->|聚合结果| A
                    </div>
                </div>

                <h3 class="text-2xl font-semibold mt-8 mb-4 text-gray-800">执行流程</h3>
                <ol class="list-decimal pl-6 space-y-3">
                    <li>
                        <strong>配置远程集群</strong>：在协调集群中配置要搜索的远程集群。每个远程集群都有一个唯一的名称和对应的地址（IP 或主机名）。协调集群通过这些配置了解如何访问远程集群。
                    </li>
                    <li>
                        <strong>发起搜索请求</strong>：用户在协调集群上发起搜索请求。请求包括要搜索的索引、查询条件等信息。协调集群将这些请求转发到所有配置的远程集群。
                    </li>
                    <li>
                        <strong>转发请求</strong>：协调集群通过已经配置的远程集群名称将搜索请求发送到相应的远程集群。远程集群接收到请求后，在其本地数据上执行搜索操作。
                    </li>
                    <li>
                        <strong>汇总结果</strong>：各个远程集群执行完搜索后，将结果返回给协调集群。协调集群将这些结果汇总，并按照请求中的排序和分页要求整合结果。
                    </li>
                    <li>
                        <strong>返回结果</strong>：协调集群将整合后的搜索结果返回给用户。
                    </li>
                </ol>

                <h2 class="text-3xl font-bold mt-16 mb-6 text-gray-800 border-b pb-2">配置跨集群搜索</h2>
                <p>要实现跨集群搜索，需在协调集群中进行以下配置：</p>

                <h3 class="text-2xl font-semibold mt-8 mb-4 text-gray-800">配置远程集群</h3>
                <p>在协调集群的 <code>elasticsearch.yml</code> 配置文件中，添加远程集群的配置：</p>
                
                <div class="code-block p-4 my-6 rounded-lg overflow-x-auto">
                    <pre class="text-sm"><code># 配置远程集群
cluster.remote.remote_cluster_one.seeds: ["192.168.1.2:9300", "192.168.1.3:9300"]</code></pre>
                </div>

                <div class="flex items-start bg-blue-50 p-4 rounded-lg my-6">
                    <div class="flex-shrink-0 text-blue-500 mt-1 mr-3">
                        <i class="fas fa-info-circle"></i>
                    </div>
                    <div>
                        <p class="text-blue-800"><strong>remote_cluster_one</strong>：远程集群的名称，可以自定义。</p>
                        <p class="text-blue-800"><strong>seeds</strong>：包含远程集群中一个或多个节点的 IP 地址和端口号。</p>
                    </div>
                </div>

                <h3 class="text-2xl font-semibold mt-8 mb-4 text-gray-800">使用跨集群搜索</h3>
                <p>在配置好远程集群后，可以在协调集群上执行跨集群搜索。使用远程集群名称作为前缀进行搜索：</p>
                
                <div class="code-block p-4 my-6 rounded-lg overflow-x-auto">
                    <pre class="text-sm"><code>GET /remote_cluster_one:index_name/_search
{
  "query": {
    "match": {
      "field": "value"
    }
  }
}</code></pre>
                </div>

                <div class="flex items-start bg-yellow-50 p-4 rounded-lg my-6">
                    <div class="flex-shrink-0 text-yellow-500 mt-1 mr-3">
                        <i class="fas fa-lightbulb"></i>
                    </div>
                    <div>
                        <p class="text-yellow-800"><strong>remote_cluster_one:index_name</strong>：<code>remote_cluster_one</code> 是远程集群的名称，<code>index_name</code> 是在远程集群上要搜索的索引名称。</p>
                    </div>
                </div>

                <h2 class="text-3xl font-bold mt-16 mb-6 text-gray-800 border-b pb-2">跨集群搜索的优势</h2>
                <div class="grid md:grid-cols-3 gap-6 my-8">
                    <div class="bg-white p-6 rounded-xl shadow-md card-hover transition-all duration-300">
                        <div class="text-purple-600 text-3xl mb-4">
                            <i class="fas fa-shield-alt"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">数据隔离</h3>
                        <p class="text-gray-600">可以将数据分散到多个集群中，而不必将所有数据集中到一个集群中，提高数据的隔离性和安全性。</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md card-hover transition-all duration-300">
                        <div class="text-blue-600 text-3xl mb-4">
                            <i class="fas fa-expand"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">扩展性</h3>
                        <p class="text-gray-600">支持大规模的数据分布，适用于具有大量数据或需要跨地理区域的应用场景。</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md card-hover transition-all duration-300">
                        <div class="text-green-600 text-3xl mb-4">
                            <i class="fas fa-stream"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">简化操作</h3>
                        <p class="text-gray-600">用户可以通过一个协调集群对多个远程集群进行统一的搜索操作，无需在每个远程集群上执行独立的搜索请求。</p>
                    </div>
                </div>

                <h2 class="text-3xl font-bold mt-16 mb-6 text-gray-800 border-b pb-2">跨集群搜索的注意事项</h2>
                <div class="space-y-6">
                    <div class="flex items-start">
                        <div class="flex-shrink-0 bg-red-100 p-2 rounded-full mr-4">
                            <i class="fas fa-network-wired text-red-500"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold text-gray-800 mb-2">网络配置</h3>
                            <p class="text-gray-600">确保协调集群和远程集群之间的网络连接正常，端口开放。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 bg-yellow-100 p-2 rounded-full mr-4">
                            <i class="fas fa-code-branch text-yellow-500"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold text-gray-800 mb-2">版本兼容</h3>
                            <p class="text-gray-600">所有参与的集群应使用兼容的 Elasticsearch 版本，以避免因版本不一致导致的功能问题。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 bg-blue-100 p-2 rounded-full mr-4">
                            <i class="fas fa-tachometer-alt text-blue-500"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold text-gray-800 mb-2">性能考虑</h3>
                            <p class="text-gray-600">跨集群搜索会增加网络负载和查询延迟，因此需要合理规划集群架构和配置，以确保系统性能满足需求。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <div class="flex-shrink-0 bg-green-100 p-2 rounded-full mr-4">
                            <i class="fas fa-lock text-green-500"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold text-gray-800 mb-2">安全配置</h3>
                            <p class="text-gray-600">在跨集群搜索中，确保数据传输的安全性，配置合适的认证和加密机制。</p>
                        </div>
                    </div>
                </div>

                <div class="bg-indigo-50 p-6 rounded-xl mt-12 flex flex-col md:flex-row items-center">
                    <div class="md:w-2/3 md:pr-6">
                        <h3 class="text-xl font-semibold text-indigo-800 mb-2">想要了解更多？</h3>
                        <p class="text-indigo-700">探索跨集群搜索的高级配置和优化技巧，提升您的分布式搜索体验。</p>
                    </div>
                    <div class="md:w-1/3 mt-4 md:mt-0">
                        <a href="#" class="block text-center bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-300">
                            查看高级指南 <i class="fas fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-12 px-4">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col items-center justify-center">
                <div class="text-xl font-medium text-white mb-2">技术小馆</div>
                <a href="http://www.yuque.com/jtostring" class="text-indigo-300 hover:text-indigo-100 transition-colors duration-300">
                    <i class="fas fa-external-link-alt mr-2"></i> www.yuque.com/jtostring
                </a>
                <div class="mt-6 flex space-x-4">
                    <a href="#" class="text-gray-400 hover:text-white transition-colors duration-300">
                        <i class="fab fa-github"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition-colors duration-300">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition-colors duration-300">
                        <i class="fab fa-weixin"></i>
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: false,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```